
#include "image.h"

PPM::PPM(const std::string&file,int w,int h):m_width(w),m_height(h),m_fileName(file)
 {
     m_outputFile.open(file, std::ios::binary|std::ios::out);
 }

 std::ofstream& PPM::stream()
 {
    return m_outputFile;
 }

PPM::~PPM(){
    m_outputFile.close();
}
